package com.adgox.tiantianbiting.home.programCustomBuy;

import com.adgox.tiantianbiting.base.BasePresenter;
import com.adgox.tiantianbiting.base.BaseView;
import com.adgox.tiantianbiting.bean.PageBean;
import com.adgox.tiantianbiting.bean.ProgramChooseBean;
import com.adgox.tiantianbiting.bean.SubProgramBean;

import java.util.ArrayList;

/**
 * Created by tang on 2018/12/29.
 */

public class ProgramCustomBuyContract {
    interface Presenter extends BasePresenter{
        void getProgramInfo(int programId);
        void getProgramSeasonList(int programId,int startPoint,int maxPage);
        void buySelected(int programId, ArrayList<Long> buySeasons);
    }

    interface View extends BaseView<Presenter>{
        void onSetProgramInfo(SubProgramBean bean);
        void onSetProgramSeasonList(PageBean<ProgramChooseBean> list);

        void onBuySuccess();
        void onBuyFailed(String msg);
    }
}
